const path = require('path')
module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  pages: {
    index: {
      entry: './src/renderer/main.js',
      template: './src/renderer/public/index.html'
    }
  },
  outputDir: './dist/electron/renderer',
  chainWebpack: config => {
    config.resolve.alias.set('@', path.join(__dirname, 'src/renderer'))
  },
  productionSourceMap: false, // 打包时不生成map文件减小打包体积
  css: { sourceMap: false }
}
